package com.tedu.food.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import lombok.Data;

@Data
@Configuration // 2.2.0无需添加,2.2.1需要添加
@ConfigurationProperties(prefix = PageProperties.PAGE_PREFIX)
public class PageProperties {
	public static final String PAGE_PREFIX = "order.page";

	private Integer pageSize = 3;

}